package com.xiaouyudeguang.common.annotation;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
@DubboService
@RefreshScope
public @interface ApiService {

    boolean dataScope() default false;

    Class<?> entityCls() default Void.class;
}
